E:/E+I/Informatik/Projekte/FH/n-Damen Problem/box.c File Reference

#include "ndame.h"

Go to the source code of this file.

Functions

void box ()
 box


Detailed Description

PURPOSE: file creates a box

Author:
Daniel Hasemann
Version:
1.0
Date:
December 16th, 2005

Definition in file box.c.


Function Documentation

void box  ) 
 

box

This function prints a box around the console and creates a status bar and a menu bar.

See also:
main()
Author:
Daniel Hasemann
Date:
December 16th, 2005

Definition at line 20 of file box.c.

Referenced by main().

00021 {
00022     int ii;
00023     
00024     clrscr();
00025     
00026     for(ii=0;ii<=77;ii++)                             //loop for horizontal lines
00027     {    
00028         gotoxy(ii+2,1);
00029         printf("%c",205);                             //upper double line
00030         gotoxy(ii+2,25);
00031         printf("%c",205);                             //lower double line
00032         gotoxy(ii+2,3);
00033         printf("%c",205);                             //upper middle double line
00034         gotoxy(ii+2,23);
00035         printf("%c",196);                             //lower single line                            
00036         gotoxy(ii+2,21);
00037         printf("%c",205);                             //lower middle double line
00038     }
00039     
00040     for(ii=2;ii<=24;ii++)                             //loop for vertical lines
00041     {    
00042         gotoxy(1,ii);
00043         printf("%c",186);                             //left double line
00044         gotoxy(80,ii);
00045         printf("%c",186);                             //right double line
00046     }   
00047     
00048     for(ii=4;ii<=20;ii++)                             //loop for vertical line
00049     {
00050         gotoxy(40,ii);
00051         printf("%c",179);                             //middle single line
00052     }    
00053     
00054     gotoxy(1,1);
00055     printf("%c",201);                                 //left upper corner
00056     gotoxy(80,1);                                     
00057     printf("%c",187);                                 //right upper corner
00058     gotoxy(1,25);
00059     printf("%c",200);                                 //left lower corner
00060     gotoxy(80,25);
00061     printf("%c",188);                                 //right lower corner
00062     
00063     gotoxy(1,3);
00064     printf("%c",204);                                 //left upper double sign
00065     gotoxy(1,21);
00066     printf("%c",204);                                 //left lower double sign
00067     
00068     gotoxy(80,3);                                     
00069     printf("%c",185);                                 //right upper double sign
00070     gotoxy(80,21);
00071     printf("%c",185);                                 //right lower double sign
00072     
00073     gotoxy(20,2);                                     //vertical signes
00074     printf("%c",179);                                 //upper left single sign
00075     gotoxy(40,2);
00076     printf("%c",179);                                 //upper middle single sign
00077     gotoxy(60,2);
00078     printf("%c",179);                                 //upper right single sign
00079     
00080     gotoxy(27,22);                                    //vertical signs
00081     printf("%c",179);                                 //middle left single sign
00082     gotoxy(53,22);
00083     printf("%c",179);                                 //middle right single sign
00084     gotoxy(27,24);
00085     printf("%c",179);                                 //lower left single sign
00086     gotoxy(53,24);
00087     printf("%c",179);                                 //lower right single sign
00088     
00089     gotoxy(1,1);
00090     printf("\a");                                     //beep
00091 }


Generated on Sun Dec 18 19:26:14 2005 for n-Queens Problem by  doxygen 1.4.5